import {get, post, postJson} from './http'
const Migrate = {
    queryinfobyidentificationCode(data){  //根据识别码查询信息
        return post('customer_center/query_info_by_identificationCode',{
            identificationCode:data.identificationCode
        })
    },
    identification(data){   //直接保存
        return post('customer_center/identification',{
            userId:data.userId,
            validCode:data.validCode,
            password:data.password,
            paymentPassword:data.paymentPassword,
        })
    },
    indirectIdentification(data){
        return post('customer_center/indirect_identification',{
            userId:data.userId,
            validCode:data.validCode,
            mobileNo:data.mobileNo,
            password:data.password,
            paymentPassword:data.paymentPassword,
            newValidCode:data.newValidCode
        })
    },
    queryVideoInfos(data){
        return post('customer_center/query_video_infos',{
            videoId: data.videoId || null,
            activityType:data.activityType || null,  //1:视频，2:商品，3:活动，4:商品和活动
            pageNum:data.pageNum || null,
            pageSize:data.pageSize || null,
            loginToken:data.loginToken || null
        })
    }
}
export default Migrate
